package live.jialing.sip.message.box.dto;

import live.jialing.sip.message.box.vo.Receiver;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;
import org.hibernate.validator.constraints.NotBlank;

import javax.validation.constraints.NotNull;
import java.io.Serializable;

/**
 * Created by bzt on 2017/6/19.
 */
@Setter
@Getter
@ToString
public class MessageDTO implements Serializable {

    /**
     * 标题
     */
    @NotBlank(message = "标题不能为空")
    private String title;

    /**
     * 内容
     */
    @NotBlank(message = "消息内容不能为空")
    private String content;

    /**
     * 发件人userId
     */
    @NotNull(message = "发件人不能为空")
    private Long sender;

    /**
     * 收件人
     */
    @NotNull(message = "收件人不能为空")
    private Receiver receiver;


}
